﻿@model gnet1.Models.ANetViewModel
@{
    ViewBag.Title = "Save";
}

<h2>Save</h2>
<form action="https://test.authorize.net/gateway/transact.dll" method="post">
  @Html.Hidden("x_fp_hash" , Model.Hash);
  @Html.Hidden("x_fp_sequence",Model.Sequence);
  @Html.Hidden("x_fp_timestamp",Model.Login);
  @Html.Hidden("x_login","56r7aSCG9");
  @Html.Hidden("x_amount","9.99");
  @Html.Hidden("x_relay_url","http://test.purepathway.com/Home/Sim"); 
  @Html.Hidden("x_relay_response","TRUE");
  @Html.Hidden("x_card_num", "4111111111111111");
  @Html.Hidden("x_exp_date", "0116");
  @Html.Hidden("x_card_code", "1234");
</form>

<form action="https://test.authorize.net/gateway/transact.dll" method="post">
  @Html.Hidden("x_amount","9.99");
  @Html.Hidden("x_login","56r7aSCG9");
  @Html.Hidden("x_tran_key", Model.TransactionKey);
  @Html.Hidden("x_first_name","john");
  @Html.Hidden("x_last_name","gnazzo");
  @Html.Hidden("x_address","11291 E. Mexico Avenue"); 
  @Html.Hidden("x_city","Aurora"); 
  @Html.Hidden("x_state","CO"); 
  @Html.Hidden("x_zip","80012"); 
  @Html.Hidden("x_fp_timestamp",Model.TimeStamp);
  @Html.Hidden("x_fp_sequence",Model.Sequence);
  @Html.Hidden("x_relay_response","TRUE");
  @Html.Hidden("x_test_request","TRUE");
  @Html.Hidden("x_type","AUTH_CAPTURE")
  @Html.Hidden("x_fp_hash" , Model.Hash);
  @Html.Hidden("x_relay_url","http://test.purepathway.com/Home/Sim");
  @Html.Hidden("x_receipt_link_url","http://test.purepathway.com/Home/Receipt");
  @Html.Hidden("x_delim_data","FALSE");
  @Html.Hidden("x_card_num", "4111111111111111");
  @Html.Hidden("x_exp_date", "0116");
  @Html.Hidden("x_card_code", "1234");
  
    @Html.Hidden("x_type", "AUTH_ONLY");
  @Html.Hidden("x_allow_partial_auth", "true");
  <input type = "submit" value = "Pay" />
  </form>